#include <pd_gpio.h>
#include <hd_led.h>
#include <delay.h>
#include "main.h"

extern void SystemClock_Config(void);

int main(void) {
    SystemClock_Config();

    GPIO *gpio = GPIOBuilder.build(GPIOB, LL_GPIO_PIN_2);
    LED *led = LEDBuilder.build(gpio);
    led->init(led);

    led->on(led);
    delay_ms(1000);
    led->off(led);
    delay_ms(1000);

    while (1) {
        led->turn(led);
        delay_ms(1000);
    }
}
